package summer_vacation.qiuyangyang;
import java.util.Scanner;
/**
 * Created by Administrator on 2015/8/26 0026.
 */
public class Assignment_19 {
    public static void main(String[] args) {
        Scanner in=new Scanner(System.in);
        System.out.println("请输入一个数字：");
        int a=in.nextInt();

            for (int i = 2; i <= a; i++) {
                while (a % i == 0) {
                    System.out.print(i + " ");
                    a /= i;
                }
                if (a < i) {
                    break;
                }
            }
            System.out.println();
    }
}
